NOTE: if scripts within folders are not numbered then the order of execution does not matter.

1. In order to replicate the construction of the data the following PATH variables should be defined locally:
 - storage  // your local or cloud storage
 - data_hub // secure data storage for restricted data

2. The data IHDP data (https://www.icpsr.umich.edu/web/DSDR/studies/9795) downloaded in ASCII format should be placed in the folder ```ece_parenting``` located in the ```$storage```. Once downlaoded the data should be placed in the following folder:
```$storage/ece_parenting/ICPSR_09795_ASCII/...```

3. There should also be a folder ```$storage/ece_parenting/us_1985/``` that containing the following data:
   - emp-unemployment.xls
   - fes-85.pdf
   - fred-median-income.xls
   - fred-us-population.xlsx
    This files are used for the construction of state-level control variables. Further description is available in ```2-us_1985/README.md``` and in each of the scripts located in the same folder.
    
4. Having ASCII data in the folder all the scripts/folders 1-6 can be executed and will result in the stata file ```ihdp_data_0-3.dta```. This file is as far as one can get without having access to the restricted data.
   
5. The restricted follow-up IHDP data for Ages 5, 8 and 18 can be requested here: https://www.icpsr.umich.edu/web/HMCA/studies/23580. It should be placed in a secure folder within ```data_hub```. The ```adultihdp.dta``` should be located in the ```data_hub``` as well. Executing ```7-add_restricted_data.do``` will result in the full data (ihdp_data). The script purposefully does not have a ```save``` command to keep restricted data in a secure location.
